<%-- 
    Document   : Top
    Created on : Dec 3, 2012, 3:34:45 PM
    Author     : Quang Thao
--%>
<%@page import="javax.servlet.Servlet"%>
<%@page import="beans.AccountBean"%>
<%@page import="javax.jms.Session"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<div id="top">
    <div class="intro">
        <div style="float:left;width:700px;">
            <div class="MenuItem">
                <ul class="dropdown">
                    <li class="dropdown_trigger">
                        <a href="../Home/Home.jsp">Trang chủ</a>
                    </li>
                    <li class="dropdown_trigger">
                        <a href="../Home/About.jsp">Giới thiệu</a>
                    </li>
                    <li class="dropdown_trigger">
                        <a href="../Home/Contact.jsp">Liên hệ</a>
                    </li>
                </ul>
            </div>
        </div>
        <div style="float:right;">
            <%
                AccountBean acc = (AccountBean)session.getAttribute("Account");
                if (acc != null)
                {
                    %>
            <div class="MenuItem">
                <ul class="dropdown">
                    <li class="dropdown_trigger">
                        <a>Xin chào
                        <% out.print(acc.getName()); %></a>
                    </li>
                    <li class="dropdown_trigger">
                        <form action="../../SignOutServlet" method="POST">
                            <input type="submit" value="Đăng xuất" name="btnSignOut" 
                                   class="Button1"/>
                        </form>
                    </li>
                </ul>
            </div>
                    <%
                }
                else    
                {
                    %>
            <div class="MenuItem">
                <ul class="dropdown">
                    <li class="dropdown_trigger">
                        <a href="../Account/LoginUser.jsp">Đăng nhập</a>
                    </li>
                    <li class="dropdown_trigger">
                        <a href="../Account/Register.jsp">Đăng ký</a>
                    </li>
                </ul>
            </div>
                <%}
            %>
        </div>
    </div>
    <div class="banner"></div>
</div>
